#include "loginform.h"
#include "ui_loginform.h"

#include <QPaintEvent>
#include <QPainter>
#include <QPixmap>

LoginForm::LoginForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LoginForm)
{
    ui->setupUi(this);
}

LoginForm::~LoginForm()
{
    delete ui;
}

void LoginForm::paintEvent(QPaintEvent *)
{
    QPainter p(this);
    QPixmap pix(":/images/back.jpg");
    p.drawPixmap(0,0,pix);
}

void LoginForm::on_pb_login_clicked()
{
    emit signalLoginSuccess("Hello");
}
